﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 中介者模式
{
    /// <summary>
    /// 老师
    /// </summary>
    public class Teacher : BaseCharacter
    {

        public override void SendMessage(string message, BaseCharacter characterTo)
        {
            Console.WriteLine($"{base.Name}老师to{characterTo.Name}:{message}");
            characterTo.GetMessage(message,this);
        }
        public override void GetMessage(string message, BaseCharacter characterFrom)
        {
            Console.WriteLine($"{base.Name}老师get{characterFrom.Name}:{message}");
        }
    }
}
